﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using GeoFramework;

namespace MapControl
{
    public class MapEventArgs : EventArgs
    {
        public Point Point { get; set; }
        public Position Position { get; set; }
    }

    public delegate void MapEventHandler(object sender, MapEventArgs me);

    public class MapObserver
    {
        public Rectangle Area { get; set; }
        public MapEventHandler Action { get; set; }

        public MapObserver(Rectangle area, MapEventHandler action)
        {
            Area = area;
            Action = action;
        }
    }
}
